package com.cloud.servicegreyprovider1.controller;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class MainController {

    @Value("${server.port}")
    private String port;

    @Value("${eureka.instance.metadata-map.version}")
    private String version;

    @GetMapping("/getServiceInfo")
    public String getServiceInfo() {
        return "server.port=" + port + ",version=" + version;
    }
}
